package com.smedi.ismedi.file.core.infrastructure.constant;

import com.smedi.ismedi.web.starter.exception.BasicError;
import com.smedi.ismedi.web.starter.exception.ErrorItem;

/**
 * 错误消息提示
 */
public class CustomError extends BasicError {

    public static final ErrorItem NORMAL_ERROR = new ErrorItem(1, "系统错误，请联系系统管理员！");

    public static final ErrorItem NO_DATA_FOUND = new ErrorItem(2, "系统未找到数据或已删除！");

    public static final ErrorItem FILE_UPLOAD_ERROR = new ErrorItem(3, "文件上传失败");

    public static final ErrorItem FILE_UPLOAD_SAVE_ERROR = new ErrorItem(4, "上传文件信息存储失败");

    public static final ErrorItem FILE_DOWNLOAD_ERROR = new ErrorItem(5, "文件下载失败");

    public static final ErrorItem FILE_NO_FOUND = new ErrorItem(6, "文件不存在");

    public static final ErrorItem FILE_DELETE_ERROR = new ErrorItem(7, "文件删除失败");

    public static final ErrorItem FILE_NAME_MISS = new ErrorItem(8, "文件名为空");

    public static final ErrorItem FILE_FORMAT_ERROR = new ErrorItem(9, "仅支持部分Execl和Word");

    public static final ErrorItem FILE_DELETE_FAIL = new ErrorItem(10, "文件删除失败");

    public static final ErrorItem FILE_CONVERT_FAIL = new ErrorItem(11, "文件转换失败");

    public static final ErrorItem FILE_WRITE_FAIL = new ErrorItem(12, "文件写入失败");

    public static final ErrorItem TOKEN_GET_FAIL = new ErrorItem(13, "token获取失败");

    public static final ErrorItem SIGNATURE_GET_FAIL = new ErrorItem(14, "签章失败");

    public static final ErrorItem REMOTE_SIGNATURE_FAIL = new ErrorItem(15, "远程签章接口调用失败");
}
